﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="MCalender.ascx.cs" Inherits="User_Controls_MCalender" %>
<%--<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>--%>
<asp:ScriptManagerProxy ID="SCM" runat="server">
</asp:ScriptManagerProxy>
<asp:UpdatePanel ID="Upd" runat="server">
    <ContentTemplate>
        <asp:ImageButton ID="ImgBtnCal" runat="server" ImageUrl="~/Images/calendar.gif" OnClick="ImgBtnCal_Click"
            Style="float: left;" />
        <div style="float: left; position: absolute;">
            <asp:Calendar ID="Calendar1" runat="server" BackColor="#FFFFCC" BorderColor="#FFCC66"
                BorderWidth="1px" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
                ForeColor="#663399" Height="200px" OnDayRender="Calendar1_DayRender" ShowGridLines="True"
                Width="220px" Visible="false" OnSelectionChanged="Calendar1_SelectionChanged"
                onblur="javascript:this.visibility='false';">
                <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
                <SelectorStyle BackColor="#FFCC66" />
                <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
                <OtherMonthDayStyle ForeColor="#CC9966" />
                <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
                <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" />
                <TitleStyle BackColor="#55a22d" Font-Bold="True" Font-Size="9pt" ForeColor="#FFFFFF" />
            </asp:Calendar>
        </div>
        <div style="clear: both;">
        </div>
        <asp:Label ID="LblErrorMsg" runat="server" ForeColor="Red" EnableViewState="false"></asp:Label>
    </ContentTemplate>
</asp:UpdatePanel>